<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
</head>
<br>
<form action="/upload" method="POST" enctype="multipart/form-data">
    {% csrf_token %}
    <input type="file" name="photo" />
    <input type="submit" value="上传" />
</form>

</body>
</html>